package net.ericaro.neojavagen.expressions ;
import net.ericaro.neojavagen.expressions.ArrayAccess;
import net.ericaro.neojavagen.expressions.Expression;
import net.ericaro.neojavagen.expressions.PrimaryNoNewArray ;

/**
* *<pre> PrimaryArrayAccess :
    PrimaryNoNewArray [ Expression ]
</pre>
*/
public class PrimaryArrayAccess  implements ArrayAccess {

PrimaryNoNewArray primarynonewarray;
Expression expression ;

public PrimaryArrayAccess( PrimaryNoNewArray primarynonewarray, Expression expression ){
	this.primarynonewarray = primarynonewarray; this.expression = expression ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.primarynonewarray ).append(" ");
stringbuilder.append( "[" ).append(" ");
stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( "]" ).append(" ") ;
	return stringbuilder.toString();
}

}
